package com.qpcy.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.qpcy.entity.HotProduct;
import com.qpcy.mapper.HotProductMapper;
import com.qpcy.service.HotProductService;
import com.qpcy.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author DELL
 * @since 2024-10-27
 */
@Service
public class HotProductServiceImpl extends ServiceImpl<HotProductMapper, HotProduct> implements HotProductService {

    @Autowired
    private HotProductMapper hotProductMapper;

    @Override
    public ResponseResult getAll() {
        return ResponseResult.success(hotProductMapper.selectAllWithRelations());
    }
}
